package com.controller;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.model.UsersPersonal;
import com.service.UsersPersonalServicegeren;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 简历评估
 * </p>
 *
 * @author Damon
<<<<<<< HEAD
 * @since 2021-04-29
 */
@RestController
@RequestMapping("/users-personal")
public class UsersPersonalgerenController {
    //  列表数据  支持分页和条件查询
    @Autowired
    private UsersPersonalServicegeren usersPersonalServicegeren;
    //列表数据
    @RequestMapping("/zhuanjialist")
    public Page<UsersPersonal> list(Long pageNum, Long size){
        //分页对象
        Page<UsersPersonal> page = new Page<UsersPersonal>(pageNum, size);
        page = usersPersonalServicegeren.listPage(page);
        return page;
    }


    //列表数据
    @RequestMapping("/listAll")
    public List<UsersPersonal> listAll(){
        List<UsersPersonal> list = usersPersonalServicegeren.list();
        return list;
    }


    @RequestMapping("/getById")
    public UsersPersonal getByEmpno(int id){
        return usersPersonalServicegeren.getById(id);
    }

}

